package cn.edu.zafu.bigdata.x.wgj.c;
class Book{
    private String title;
    private String author;
    private double price;
    public Book(String title,String author,double price){
        this.title=title;
        this.author=author;
        this.price=price;
    }
    @Override
    public String toString(){
        return "Book[title="+title+",author="+author+",price="+price+"]";
    }
}
public class Testbook {
    public static void main(String[] args){
        Book book1=new Book("Java Programming","Jone Doe",29.99);
        Book book2=new Book("Python for beginners","Jane Smith",19.95);
        System.out.println(book1);
        System.out.println(book2);
    }

}
